var rScroll = function(){
	var rcb_height = $('.right-side:first').height();
	$('.right-side:first').children().each(function(){
		if(!$(this).hasClass('right-content-box') && !$(this).is(':hidden')){
			rcb_height -= $(this).outerHeight();
		}
	});
	$('.right-content-box').height(rcb_height);
}

$('.right-side').scroll(function(){
	rScroll();
});
$(window).resize(function(){
	rScroll();
})